package com.jddup.test.pojo.mysql;

import com.baomidou.mybatisplus.annotation.*;
import com.jddup.common.annotations.ColumnDes;

import java.math.BigDecimal;
import java.util.Date;

@TableName("t_contract_account_info")
public class ContractAccountInfo {
	@TableId(value = "id", type = IdType.UUID)
	@ColumnDes(maxLength = 50)
	private String id;
	@TableField("symbol")
	private String symbol;
	@TableField("margin_balance")
	@ColumnDes(scale = 8)
	private BigDecimal marginBalance;
	@TableField("margin_position")
	@ColumnDes(scale = 8)
	private BigDecimal marginPosition;
	@TableField("margin_frozen")
	@ColumnDes(scale = 8)
	private BigDecimal marginFrozen;
	@TableField("margin_available")
	@ColumnDes(scale = 8)
	private BigDecimal marginAvailable;
	@TableField("profit_real")
	@ColumnDes(scale = 8)
	private BigDecimal profitReal;
	@TableField("profit_unreal")
	@ColumnDes(scale = 8)
	private BigDecimal profitUnreal;
	@TableField("withdraw_available")
	@ColumnDes(scale = 8)
	private BigDecimal withdrawAvailable;
	@TableField("risk_rate")
	@ColumnDes(scale = 8)
	private BigDecimal riskRate;
	@TableField("liquidation_price")
	@ColumnDes(scale = 8)
	private BigDecimal liquidationPrice;
	@TableField("adjust_factor")
	@ColumnDes(scale = 8)
	private BigDecimal adjustFactor;
	@TableField("margin_static")
	@ColumnDes(scale = 8)
	private BigDecimal marginStatic;
	@TableField("lever_rate")
	@ColumnDes(maximum = "16")
	private Integer leverRate;
	@TableField(value = "create_time", updateStrategy = FieldStrategy.NEVER)
	@ColumnDes(isNullable = false,defaultValue = " DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
	private Date createTime;
	@TableField(value = "update_time", update = "now()")
	@ColumnDes(isNullable = true,defaultValue = " DEFAULT NULL")
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public BigDecimal getMarginBalance() {
		return marginBalance;
	}

	public void setMarginBalance(BigDecimal marginBalance) {
		this.marginBalance = marginBalance;
	}

	public BigDecimal getMarginPosition() {
		return marginPosition;
	}

	public void setMarginPosition(BigDecimal marginPosition) {
		this.marginPosition = marginPosition;
	}

	public BigDecimal getMarginFrozen() {
		return marginFrozen;
	}

	public void setMarginFrozen(BigDecimal marginFrozen) {
		this.marginFrozen = marginFrozen;
	}

	public BigDecimal getMarginAvailable() {
		return marginAvailable;
	}

	public void setMarginAvailable(BigDecimal marginAvailable) {
		this.marginAvailable = marginAvailable;
	}

	public BigDecimal getProfitReal() {
		return profitReal;
	}

	public void setProfitReal(BigDecimal profitReal) {
		this.profitReal = profitReal;
	}

	public BigDecimal getProfitUnreal() {
		return profitUnreal;
	}

	public void setProfitUnreal(BigDecimal profitUnreal) {
		this.profitUnreal = profitUnreal;
	}

	public BigDecimal getWithdrawAvailable() {
		return withdrawAvailable;
	}

	public void setWithdrawAvailable(BigDecimal withdrawAvailable) {
		this.withdrawAvailable = withdrawAvailable;
	}

	public BigDecimal getRiskRate() {
		return riskRate;
	}

	public void setRiskRate(BigDecimal riskRate) {
		this.riskRate = riskRate;
	}

	public BigDecimal getLiquidationPrice() {
		return liquidationPrice;
	}

	public void setLiquidationPrice(BigDecimal liquidationPrice) {
		this.liquidationPrice = liquidationPrice;
	}

	public BigDecimal getAdjustFactor() {
		return adjustFactor;
	}

	public void setAdjustFactor(BigDecimal adjustFactor) {
		this.adjustFactor = adjustFactor;
	}

	public BigDecimal getMarginStatic() {
		return marginStatic;
	}

	public void setMarginStatic(BigDecimal marginStatic) {
		this.marginStatic = marginStatic;
	}

	public Integer getLeverRate() {
		return leverRate;
	}

	public void setLeverRate(Integer leverRate) {
		this.leverRate = leverRate;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
